package com.junmo.oauth.module.system.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sys_resource")
@Entity
@DynamicUpdate // 实现动态更新
@DynamicInsert // 动态插入
@Data
@Accessors(chain = true)
public class SysResource {
    @Id
    @GeneratedValue
    private Long resourceId;
    private String resourceName;
    private String resourceCode;
    private String resourceLink;
    private Long parentId;
    private String resourceIcon;
    private Integer resourceSort;
    private String resourceType;


}
